﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebsiteBanThucAn.Models;
using DAL;

namespace BLL
{
    public class MonAnBLL
    {
        public static List<MonAnModel> LayDSMonAnTatCa()
        {
            return MonAnDAL.LayDSMonAnTatCa();
        }

        public static MonAnModel LayThongTinMonAnTheoID(int id)
        {
            return MonAnDAL.LayThongTinMonAnTheoID(id);
        }

        public static List<MonAnModel> LayDSMonAnTheoTraCuu(string search)
        {
            return MonAnDAL.LayDSMonAnTheoTraCuu(search);
        }

        public static bool ThemMonAn(MonAnModel mam)
        {
            return MonAnDAL.ThemMonAn(mam);
        }

        public static bool XoaMonAn(int id)
        {
            return MonAnDAL.XoaMonAn(id);
        }

        public static bool SuaMonAn(MonAnModel mam)
        {
            return MonAnDAL.SuaMonAn(mam);
        }
    }
}
